const webpack = require('webpack')
const path = require('path')

module.exports = {
    entry: __dirname + '/src/index.js',
    output: {
        path: __dirname + '/js',
        filename: 'index.js'
    },
    module:{
        rules:[{
            test:/\.js$/,
            use: {
                loader: 'babel-loader'
            },
            exclude: /node_modules/
        },{
            test: /\.od/,
            use: {
                loader: path.resolve(__dirname,'loaders/odloader.js')
            }
        }]
    },
    devtool:"eval-source-map",
    externals: {
        'jquery':'window.jQuery',
        'jsPlumb':'window.jsPlumb',
        '$':'window.jQuery'
    }
}